update(scatter-basic): make plots more visually appealing#4166
Closed
MarkusNeusinger wants to merge 1 commit intomainfrom
Closed
update(scatter-basic): make plots more visually appealing#4166MarkusNeusinger wants to merge 1 commit intomainfrom
MarkusNeusinger wants to merge 1 commit intomainfrom
Conversation
Updated libraries: matplotlib, seaborn, plotly, bokeh, altair, plotnine, pygal, highcharts, letsplot All implementations refreshed with more interesting data contexts, better color palettes, and refined styling while keeping basic scatter format (no trendlines). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates all 9 implementations of the scatter-basic plot specification to make them more visually appealing while maintaining their basic scatter plot nature. The changes include updated datasets with more interesting real-world contexts (coffee consumption, weather patterns, penguins data), improved color schemes, and enhanced styling. The metadata files are updated to reflect Python 3.14.2, updated library versions, and staging preview URLs. Quality scores are set to null pending automated review.
Changes:
- Updated all 9 scatter-basic implementations (matplotlib, seaborn, plotly, bokeh, altair, plotnine, pygal, highcharts, letsplot) with more engaging datasets and improved visual styling
- Updated metadata YAML files to Python 3.14.2 and current library versions, with staging preview URLs
- Implementations maintain KISS principle with clean, readable code following established patterns
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| plots/scatter-basic/implementations/matplotlib.py | Temperature vs iced drinks with humidity colorbar (viridis), edge-highlighted markers with gradient coloring |
| plots/scatter-basic/implementations/seaborn.py | Palmer Penguins dataset (bill length vs body mass) with 3 species using different markers and colorblind-safe palette |
| plots/scatter-basic/implementations/plotly.py | Coffee intake vs afternoon productivity with viridis color gradient and deliberate outliers |
| plots/scatter-basic/implementations/bokeh.py | Coffee shop sales by season (4 categories) with seasonal colors and improved legend |
| plots/scatter-basic/implementations/altair.py | Temperature vs ice cream sales with rainbow color gradient and subtitle |
| plots/scatter-basic/implementations/plotnine.py | Coffee growing altitude vs flavor score with 3 varieties and pastel palette |
| plots/scatter-basic/implementations/pygal.py | Temperature vs iced drinks with clean single-series and improved dot styling |
| plots/scatter-basic/implementations/highcharts.py | Temperature vs iced coffee with two series (Cool Days/Warm Days) in blue/gold colors |
| plots/scatter-basic/implementations/letsplot.py | Coffee intake vs productivity score with light blue theme and minimal styling |
| plots/scatter-basic/metadata/matplotlib.yaml | Updated Python 3.14.2, staging URLs, null quality score pending review |
| plots/scatter-basic/metadata/seaborn.yaml | Updated Python 3.14.2, staging URLs, null quality score pending review |
| plots/scatter-basic/metadata/plotly.yaml | Updated Python 3.14.2, plotly 6.5.2, staging URLs, null quality score |
| plots/scatter-basic/metadata/bokeh.yaml | Updated Python 3.14.2, bokeh 3.8.2, staging URLs, null quality score |
| plots/scatter-basic/metadata/altair.yaml | Updated Python 3.14.2, staging URLs, null quality score pending review |
| plots/scatter-basic/metadata/plotnine.yaml | Updated Python 3.14.2, plotnine 0.15.3, staging URLs, null quality score |
| plots/scatter-basic/metadata/pygal.yaml | Updated Python 3.14.2, staging URLs, null quality score pending review |
| plots/scatter-basic/metadata/highcharts.yaml | Updated Python 3.14.2, highcharts 1.10.3, staging URLs, null quality score |
| plots/scatter-basic/metadata/letsplot.yaml | Updated Python 3.14.2, letsplot 4.8.2, staging URLs, null quality score |
Comment on lines
+9
to
25
| from plotnine import ( | ||
| aes, | ||
| element_blank, | ||
| element_line, | ||
| element_rect, | ||
| element_text, | ||
| geom_point, | ||
| ggplot, | ||
| guides, | ||
| labs, | ||
| scale_color_manual, | ||
| scale_size_continuous, | ||
| theme, | ||
| theme_minimal, | ||
| ) | ||
|
|
||
|
|
There was a problem hiding this comment.
The module 'plotnine' imports itself.
Suggested change
| from plotnine import ( | |
| aes, | |
| element_blank, | |
| element_line, | |
| element_rect, | |
| element_text, | |
| geom_point, | |
| ggplot, | |
| guides, | |
| labs, | |
| scale_color_manual, | |
| scale_size_continuous, | |
| theme, | |
| theme_minimal, | |
| ) | |
| import importlib | |
| p9 = importlib.import_module("plotnine") | |
| aes = p9.aes | |
| element_blank = p9.element_blank | |
| element_line = p9.element_line | |
| element_rect = p9.element_rect | |
| element_text = p9.element_text | |
| geom_point = p9.geom_point | |
| ggplot = p9.ggplot | |
| guides = p9.guides | |
| labs = p9.labs | |
| scale_color_manual = p9.scale_color_manual | |
| scale_size_continuous = p9.scale_size_continuous | |
| theme = p9.theme | |
| theme_minimal = p9.theme_minimal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updated all 9 implementations for scatter-basic to be more visually appealing and less boring while keeping the basic scatter format (no trendlines).
Libraries: matplotlib, seaborn, plotly, bokeh, altair, plotnine, pygal, highcharts, letsplot
Per-Library Changes
matplotlib
seaborn
plotly
bokeh
altair
plotnine
pygal
highcharts
letsplot
Test Plan
Generated with Claude Code
/updatecommand